<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<link rel="stylesheet" type="text/css" href="./public/admin/bootstrap/css/bootstrap.min.css"/>
		<link rel="stylesheet" type="text/css" href="./public/admin/bootstrap/css/bootstrap-responsive.min.css"/>
		<script src="bootstrap/js/bootstrap.min.js" type="text/javascript" charset="utf-8"></script>
		<link rel="stylesheet" type="text/css" href="./public/admin/css/usercenter.css"/>
		<link rel="stylesheet" type="text/css" href="./public/admin/css/header.css"/>
		<link rel="stylesheet" type="text/css" href="./public/admin/css/footer.css"/>		
		<script src="./public/admin/js/area.js" type="text/javascript" charset="utf-8"></script>
		<script src="./public/admin/js/jquery-1.7.2.min.js" type="text/javascript" charset="utf-8"></script>

		{{if value="empty($userData['address'][0])"}}
		<script type="text/javascript">		
			$(function(){
				//初始化方法
				area.init('area');
				//修改的时候默认被选中效果
				area.selected('北京市','北京','朝阳区');
			})		
		</script>	
		{{else}}
		<script type="text/javascript">		
			$(function(){
				//初始化方法
				area.init('area');
				//修改的时候默认被选中效果
				area.selected('{{$userData['address'][0]}}','{{$userData['address'][1]}}','{{$userData['address'][2]}}');
			})		
		</script>
		{{endif}}		
	</head>
	<body>
		{{include file="VIEW_PATH/Common/header.php"}}
		
		<article>
			<div class="center" >
			{{include file="VIEW_PATH/Common/orderRight.php"}}
				
			<div class="c_information_right">
				<div class="right_inftop"></div>
				<div class="mian">
        			<h2>会员信息</h2>
        			<form action="{{U('Home/Usercenter/information',array('uid'=>$_GET['uid']))}}" method="post">
	        			<div class="mian-left">
	        				<div class="form-group">
	        					<label for="">昵称:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</label>
	        					{{if value="empty($userData['nickname'])"}}	        					
									<input type="" name="nickname" id="" value="" />
								{{else}}
	        						<input type="" name="nickname" id="" value="{{$userData['nickname']}}" />									
								{{endif}}

	        					<span>昵称必须大于2而小于20个字符</span>
	        				</div>
	        				<div class="form-group">
	        					<label for="">性别：&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</label>
	        					{{if value="empty($userData['sex'])"}}
	        						<input class="radio1" type="radio" name="sex" id="" value="男" checked/>男
	                             	<input class="radio1" type="radio" name="sex" id="" value="女"  />女
	        					{{else}}
		        					<input class="radio1" type="radio" name="sex" id="" value="男" {{if value="$userData['sex']=='男'"}} checked {{endif}}/>男
		                            <input class="radio1" type="radio" name="sex" id="" value="女" {{if value="$userData['sex']=='女'"}} checked {{endif}}/>女
	        					{{endif}}	    
	        					 
	        				</div>
	
	        				<div class="form-group">
	        					<label for="">固定电话：</label>
	        					{{if value="empty($userData['telphone'])"}}	        					
									<input type="" name="telphone" id="" value="" />
								{{else}}
	        						<input type="" name="telphone" id="" value="{{$userData['telphone']}}" />									
								{{endif}}
	        					
	        					<span>如: 010-82831245</span>
	        				</div>
	        				<div class="form-group">
	        					<label for="">手机号码：</label>
	        					{{if value="empty($userData['cellphone'])"}}	        					
									<input type="" name="cellphone" id="" value="" />
								{{else}}
	        						<input type="" name="cellphone" id="" value="{{$userData['cellphone']}}" />									
								{{endif}}
	        					
	        					<span>填写手机号便于接收发货和收货通知</span>
	        				</div>
	        				<div class="form-group">
	        					<label for="">QQ:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</label>
	        					{{if value="empty($userData['qq'])"}}	        					
									<input type="" name="qq" id="" value="" />
								{{else}}
	        						<input type="" name="qq" id="" value="{{$userData['qq']}}" />									
								{{endif}}
	        					
	        					<span>填写QQ方便您的好友联系你</span>
	        				</div>
	        				<div class="form-group">
	        					<label for="">E-mail:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</label>
	        					{{if value="empty($userData['email'])"}}	        					
									<input type="" name="email" id="" value="" />
								{{else}}
	        						<input type="" name="email" id="" value="{{$userData['email']}}" />									
								{{endif}}
	        					
	        					<span>填写E-mail方便您的好友联系你</span>
	        				</div>        				
	        				<div class="form-group" >
	        					<label for="">地址:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</label>
									<select name="address[]" id="area1" class="text-input" >
										<!--<option value="">选择省份</option>-->
									</select>
									<select name="address[]" id="area2" >
										<!--<option value="">选择城市</option>-->
									</select>
									<select name="address[]" id="area3" >
										<!--<option value="">选择区县</option>-->
									</select></br> 
									{{if value="empty($userData['address'][0])"}}
										<input type="text" class='ads' name="address[]" id="address[]" value="" /> 
									{{else}}
										<input type="text" class='ads' name="address[]" id="address[]" value="{{$userData['address'][3]}}" />       
									{{endif}}
									
	        					<span>请填写详细地址</span>
	        				</div>
	        				<input type="hidden" name="uid" id="uid" value="{{$_GET['uid']}}" />
	        				<div class="baochuan">
	        					<input type="submit" id="" value="保存" name="" />
	        				</div>
	        			</div>        			        				
        			</form>
        			<div class="mian-right">
        				<img src="./public/admin/images/center/user.gif" alt="" />
        			</div>
        		</div>
			</div>	
		</article>
		{{include file="VIEW_PATH/Common/footer.php"}}
	</body>
</html>
